package com.jutixueyuan.controller;

import com.jutixueyuan.service.BannerService;
import com.jutixueyuan.pojo.LivegoodsResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BannerController {


    @Autowired
    private BannerService bannerService;

    @RequestMapping("/banner")
    public LivegoodsResult banner(){
        LivegoodsResult livegoodsResult = bannerService.selectBanners();
        return livegoodsResult;
    }
}
